package com.fastCms.business.bim.daos;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fastCms.business.bim.pojo.entity.DataRepair;
import com.fastCms.business.bim.pojo.po.ClearCarBillRecordPO;
import com.fastCms.business.bim.pojo.vo.ClearCarBillDetailRecordVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 治理设备-数据 Mapper 接口
 * </p>
 *
 * @author liusq
 * @since 2021-07-05
 */
@Repository
public interface DataRepairMapper extends BaseMapper<DataRepair> {

    List<ClearCarBillDetailRecordVO> getClearRecord(ClearCarBillRecordPO recordPO);

    DataRepair getNewestDataByDeviceId(Integer deviceId);

    int countTodayMile(Integer deviceId);

    int countTodayChange(Integer deviceId);

}
